package vo;

import po.*;

public class ChooseCourseVO {
	private String studentName = null;
	private long studentID = 0;
	private int score = 0;
	private String stuDepartment = null;

	public ChooseCourseVO(ChooseCoursePO record, StudentPO student) {
		studentName = student.getName();
		studentID = student.getID();
		score = record.getScore();
		stuDepartment = student.getDepartment();
	}

	public ChooseCourseVO(String name, long id, int newScore, String department) {
		studentName = name;
		studentID = id;
		score = newScore;
		stuDepartment = department;
	}

	public String getStudentName() {
		return studentName;
	}

	public long getStudentID() {
		return studentID;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getDepartment() {
		return stuDepartment;
	}

	public String[] toStringList() {
		String[] list = new String[4];
		list[0] = studentID + "";
		list[1] = studentName;
		list[2] = score + "";
		list[3] = stuDepartment;
		return list;
	}
}
